package com.etc.service.impl;

import com.etc.dao.RoomDao;
import com.etc.entity.Room;
import com.etc.service.RoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomServiceImpl implements RoomService {

    @Resource
    private RoomDao roomDao;
    @Override
    public int insert(Room room) {
        return roomDao.insert(room);
    }

    @Override
    public int insertNext(Integer id) {
        return roomDao.insertNext(id);
    }

    @Override
    public List<Room> findOccupied() {
        return roomDao.findOccupied();
    }


}
